projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3db4293
)
Fixed (new) segfault.
author
parkrrrr
<parkrrrr>
Thu, 11 Aug 2005 19:25:53 +0000
(19:25 +0000)
committer
parkrrrr
<parkrrrr>
Thu, 11 Aug 2005 19:25:53 +0000
(19:25 +0000)
xmltag.c
patch
|
blob
|
history
diff --git
a/xmltag.c
b/xmltag.c
index e044c3a68ffcc2bfc13c4a3e8e7fc7007f0024e2..992ec4871aabbe95dd96fba29700572d49d6dfab 100644
(file)
--- a/
xmltag.c
+++ b/
xmltag.c
@@
-63,6
+63,11
@@
void copy_xml_tag( xml_tag **copy, xml_tag *src, xml_tag *parent ) {
char **ap = NULL;
char **ap2 = NULL;
int count = 0;
+
+ if ( !src ) {
+ *copy = NULL;
+ return;
+ }
res = xcalloc( 1, sizeof(xml_tag));
*copy = res;